#include "mylib.h"
#include <fstream>
#include <streambuf>

#ifndef SHAPECONTAINER_H
#define SHAPECONTAINER_H

class ShapeContainer
{
public:
    ShapeContainer();
    ~ShapeContainer();
    Shape* createShape(const std::string &inputData);
    Shape* take(const int &inputIndex);
    void put(Shape *shape);
    void remove(const int &inputIndex);
    void moveAll(const int &x, const int &y);
    void extensionAll(const double &scale);
    void toFile(const std::string &name);
    void fromFile(const std::string &name);

private:
    std::vector<Shape*> storage;
};

#endif // SHAPECONTAINER_H
